﻿<%@ Page Language="C#" MasterPageFile="~/User/UserControl.Master" AutoEventWireup="true"
    CodeBehind="CPManager.aspx.cs" Inherits="BtoBSWT315.User.CPManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table id="Table1" cellspacing="0" cellpadding="5" width="98%" border="0">
        <tr>
              <td width="160">
                <font color="#ff3300">小贴示：<font color="#000000">管理产品信息</font></font>
            </td>
            <td>
                <table id="Table2" cellspacing="0" cellpadding="0" width="100%" border="0">
                    <tr>
                        <td width="20">
                            <asp:Image ID="Image1" runat="server" ImageUrl="Images/search.gif"></asp:Image>
                        </td>
                        <td width="400">
                            搜索关键字：
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            <asp:DropDownList ID="DropDownList1" runat="server">
                                <asp:ListItem Value="0" Selected="True">--请选择类别--</asp:ListItem>
                                <asp:ListItem Value="产品名称">产品名称</asp:ListItem>
                                <asp:ListItem Value="生产厂家">生产厂家</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align=left>
                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="Images/search1.gif" 
                                style="height: 18px">
                            </asp:ImageButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <p>
        <asp:DataGrid ID="DataGrid1" runat="server" BorderColor="#CCCCCC" BorderStyle="None"
            BorderWidth="1px" BackColor="White" CellPadding="3" AutoGenerateColumns="False"
            Width="98%" AllowCustomPaging="True" AllowPaging="True" HorizontalAlign="Center"
            PageSize="9" DataKeyField="spzs.ID">
            <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
            <ItemStyle ForeColor="#000066"></ItemStyle>
            <HeaderStyle Font-Bold="True" HorizontalAlign="Center" ForeColor="White" BackColor="#006699">
            </HeaderStyle>
            <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
            <Columns>
                <asp:BoundColumn DataField="spzs.ID" HeaderText="ID号">
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundColumn>
                <asp:TemplateColumn HeaderText="产品图片">
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    <ItemTemplate>
                        <asp:Image ID="Image2" runat="server" ImageUrl='<%# GetImageUrl(DataBinder.Eval(Container, "DataItem.Picture").ToString()) %>'
                            Width="70" Height="50"></asp:Image>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:HyperLinkColumn DataNavigateUrlField="spzs.ID" DataNavigateUrlFormatString="Edit_cp.aspx?ID={0}"
                    DataTextField="cpmc" HeaderText="产品名称"></asp:HyperLinkColumn>
                <asp:BoundColumn DataField="sccj" HeaderText="生产厂家"></asp:BoundColumn>
                <asp:BoundColumn DataField="spzs.idate" HeaderText="添加时间" DataFormatString="{0:D}">
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundColumn>
                <%--<asp:HyperLinkColumn Text="已审核" DataNavigateUrlField="ID" DataNavigateUrlFormatString="shenghe_cp2.aspx?ID={0}"
								HeaderText="审核">
								<ItemStyle HorizontalAlign="Center" ForeColor="#00CC00"></ItemStyle>
							</asp:HyperLinkColumn>--%>
                <%--<asp:HyperLinkColumn Text="&lt;img src=Images/m_olds.gif border=0&gt;" Target="_blank" DataNavigateUrlField="ID"
								DataNavigateUrlFormatString="Set.aspx?ID={0}" HeaderText="推荐">
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
							</asp:HyperLinkColumn>--%>
                <asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:ButtonColumn>
            </Columns>
            <PagerStyle HorizontalAlign="Right" ForeColor="#000066" BackColor="White" PageButtonCount="20"
                Mode="NumericPages"></PagerStyle>
        </asp:DataGrid>
    </p>
</asp:Content>
